<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>每日统计提醒</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .title {
            text-align: center
        }
    </style>
</head>

<body>
    <table class="table table-bordered">
        <tr>
            <td class='title'>累计数据</td>
        </tr>
        <tr>
            <td>
                <table class="table table-bordered">
                    <tr>
                        <td class='title'>总用户</td>
                        <td class='title'>只关注小程序</td>
                        <td class='title'>只关注公众号</td>
                        <td class='title'>同时关注</td>
                    </tr>
                    <tr>
                        <td>{{$totUserCount}}</td>
                        <td>{{$miniUserCount}}</td>
                        <td>{{$officeUserCount}}</td>
                        <td>{{$bothUserCount}}</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class='title'>{{ $todayStr }}日新增</td>
        </tr>
        <tr>
            <td>
                <table class="table table-bordered">
                    <tr>
                        <td class='title'>用户</td>
                        <td class='title'>PK赛</td>
                        <td class='title'>PK赛分享</td>
                        <td class='title'>约战</td>
                        <td class='title'>约战分享</td>
                    </tr>
                    <tr>
                        <td>{{$todayUserCount}}</td>
                        <td>{{$pkCount}}</td>
                        <td>{{$pkShareCount}}</td>
                        <td>{{$reservationCount}}</td>
                        <td>{{$reservationShareCount}}</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table class="table table-bordered">
        <tr>
            <td class='title'>红包情况</td>
        </tr>
        <tr>
            <td>
                <table class="table table-bordered">
                    <tr>
                        <td class='title'>城市</td>
                        <td class='title'>开始日期</td>
                        <td class='title'>结束日期</td>
                        <td class='title'>开始时间</td>
                        <td class='title'>结束时间</td>
                        <td class='title'>总额</td>
                        <td class='title'>已发金额</td>
                    </tr>
                    @foreach ($luckMoney as $lm)
                    <tr>
                        <td>{{$lm->cityinfo->name}}</td>
                        <td>{{$lm->sdate}}</td>
                        <td>{{$lm->edate}}</td>
                        <td>{{$lm->stime}}</td>
                        <td>{{$lm->etime}}</td>
                        <td>{{$lm->total_upper/100}}</td>
                        <td>{{$lm->current_amount/100}}</td>
                    </tr>
                    @endforeach
                </table>
            </td>
        </tr>
    </table>
    <table class="table table-bordered">
        <tr>
            <td class='title'>提现情况</td>
        </tr>
        <tr>
            <td>
                <table class="table table-bordered">
                    <tr>
                        <td class='title'>姓名</td>
                        <td class='title'>提现金额</td>
                        <td class='title'>联系方式</td>
                        <td class='title'>申请日期</td>
                    </tr>
                    @foreach ($withDraw as $w)
                    <tr>
                        <td>{{$w->user->name}}</td>
                        <td>{{$w->money/100}}</td>
                        <td>{{$w->tele}}</td>
                        <td>{{$w->created_at}}</td>
                    </tr>
                    @endforeach
                </table>
            </td>
        </tr>
        
    </table>
</body>

</html>
